﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ts_guanli.aspx.cs" Inherits="Xnjc_ts_guanli" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>投诉处理</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
    <script src="../ScriptFile/Calendar.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">

        function check() {
            if (document.forms["add"].s_tsman.value == "") {
                alert("投诉人不能为空");
                return false;

            } else if (document.forms['add'].Date_begin.value == "") {
                alert("投诉时间不能为空");
                return false;

            } else if (document.forms['add'].s_tsInfo.value == "") {
                alert("投诉内容不能为空");
                return false;
            } else {
                return true;

            }
        }
        function openwin() {
            window.open("Ajxx.aspx");
        }
        function sectorSelect(villageid) {
            arrayOfStrings = new Array("t", "tt");
            arrayOfStrings = villageid.split("+");

            document.getElementById("s_tsiid").value = arrayOfStrings[0];
        }
   	   
    </script>
</head>
<body>
    <form name="add" method="post" runat="server" onsubmit="return check()">
    <br />
    <div style="text-align: center; margin: 0px auto;">
        <div class="box_top_bar">
            <div class="box_top_left">
                <div class="box_top_right">
                    <div class="box_top_text">
                        添加投诉
                    </div>
                </div>
            </div>
        </div>
        <div class="box_middle">
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="box_middle_tab">
                <tr>
                    <td>
                        投诉人
                    </td>
                    <td align="left">
                        <div align="left">
                            <input runat="server" name="s_tsman" type="text" id="s_tsman" size="30" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        时间
                    </td>
                    <td align="left">
                        <div align="left">
                            <input runat="server" id="submitDate" type="text" readonly="readonly" onfocus="setday(this)" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        被投诉对象
                    </td>
                    <td align="left">
                        <div align="left">
                            <input runat="server" name="s_tsobject" type="text" id="s_tsIId" size="30" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        投诉案件
                    </td>
                    <td align="left">
                        <div align="left">
                            <input runat="server" name="s_tsiid1" type="text" id="s_tsiid1" checktype="txt" />
                            <input name="Save" type="button" id="Save" value="..." onclick="openwin()" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        投诉内容
                    </td>
                    <td align="left">
                        <div align="left">
                            <textarea runat="server" name="s_tsInfo" cols="55" rows="4" id="s_tsInfo"></textarea>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <div align="center">
                            <asp:Button runat="server" ID="s_save" Text="保存" OnClick="s_save_Click" OnClientClick="check()" />
                            <input class="NewButton" type="button" value="查询" onclick='window.navigate("ts_query.aspx")' />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
